<template>

  <div class="user_dialog">
    <img class="user_dialog_img" src="/images/user/lin.jpeg" alt="">
    <div class="user_dialog_content">
      <h1
      style="
      color: transparent;
      font-weight: bold;
      background: linear-gradient(to right, #ff009d, yellow, #ff009d);
      background-size: 200% 100%;
      background-clip: text; /* 将背景仅剪裁到文字 */
      cursor: pointer; 
      -webkit-background-clip: text; /* Chrome/Safari 兼容 */
      -webkit-text-fill-color: transparent; /* 使文字颜色透明，显示背景 */
      background-position: left;
      box-sizing: border-box;
      "
      >XIE LIN CAI</h1>
      <h3>Full Stack Develper <a>based in</a> ShenZhen</h3>
    </div>
    <a class="user_dialog_line"></a>
    <div class="user_dialog_line_moeny">
      <div style="display: flex;align-items: center;">
        <el-icon><Money /></el-icon>
        <p>20000￥</p>
      </div>
      <div class="user_dialog_line_moeny_contact" style="margin-top: 30px;" @mouseenter="user_dialog_line_moeny_contact">
        <NuxtLink to="/contact" style="color: white;"><el-icon><Connection /></el-icon></NuxtLink>
      </div>
    </div>
  </div>
</template>


<script lang="ts">
import { Money,ShoppingCart,Connection } from '@element-plus/icons-vue';
import { defineComponent, ref, onMounted, reactive, toRefs } from "vue";
import { ElMessage } from 'element-plus'

export default defineComponent({
  components: {
    Money,
    ShoppingCart,
    Connection
  },
  async setup(){

    const user_dialog_line_moeny_contact = async() => {
      ElMessage({
        message: h('p', { style: 'line-height: 1; font-size: 14px' }, [
          h('i', { style: 'color: #ff009d' }, 'Contact'),
          h('span',null, '  '),
          h('span', { style: 'color: black' }, 'me!'),
        ]),
      })
      
    }


    return{
      user_dialog_line_moeny_contact
    }


  }


})

</script>



<style scoped>
.user_dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 500px;      
  height: 600px;
  margin-left: 40px;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 27px  0;
  background: var(--bg-color);
  border: 2px solid var(--main-color);
  box-shadow: 10px 10px  10px var(--main-color);
  border-radius: 5px;
  color: white;
  transition: all 0.5s ease;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.user_dialog img{
  position: relative;
  width: 260px;      
  height: 270px;
  top: 25%;
  border-radius: 10%; 
  overflow: hidden;
}

.user_dialog:hover > .user_dialog_img {
  transform: translateY(-140px);
  transition: all 0.3s;
}


.user_dialog h3 {
  color: azure;
}

.user_dialog_line::after,
.user_dialog_line::before {
  content: '';
  width: 0%;
  height: 1px;
  position: absolute;
  top: 280px;
  left: 1px;
  width: 0%;
  background: #ffffff;
  display: block;
  transition: 0.1s;
}

.user_dialog:hover > .user_dialog_line::after {
  transition: 1s;
  box-shadow: 0 0 10px 1px #ffffff;
  border-radius: 10px;
  width: 100%;
}

/* .user_dialog:hover > */
.user_dialog i {
  font-size: 50px;
  padding: 10px;
  cursor: pointer;
}


.user_dialog_line_moeny_contact:hover{
  transform: scale(1.1);
  transition: all 0.2s ease;
}


.user_dialog_content,
.user_dialog_line_moeny {
  opacity: 0;
}

.user_dialog:hover > .user_dialog_content {
  opacity: 1;
}

.user_dialog_line_moeny {
  margin-top: 15%;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  transition: all 0.5s ease;
}

.user_dialog_line_moeny_span {
  position: absolute;
  border-radius: 5px;
  bottom: 70px;
  right: 30px;
  opacity: 1;
  visibility: hidden;

}


.user_dialog:hover > .user_dialog_line_moeny {
  opacity: 1;
  animation: user_dialog_line_moeny 0.5s ease;
  transition: all 0.5s ease;
}

.user_dialog_line_moeny p {
  font-size: 18px;
}


@keyframes user_dialog_line_moeny {
  0% {
    transform: translateY(100px);
  }
  100% {
    transform: translateY(0);
  }
}



</style>